import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

/**
 * @Question demo1
 * @Date 2022/10/30 20:23
 * @Solution
 */
public class demo1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int year=scanner.nextInt();
        Date date = new Date(year,1,1);
        System.out.println(date);
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        System.out.println(simpleDateFormat.format(date));
    }
}
